<template>
	<view>
		<u-swiper :height="250" :list="lun" :effect3d="true" :interval="3000" @click="click"></u-swiper>
		<uni-group title="快捷通道">
			<view class="item-container">
				<view class="thumb-box" v-for="(item1, index1) in liat" @click="tozhiyuN(item1.link)" :key="index1">
					<image class="item-menu-image" :src="item1.image" mode=""></image>
					<view class="item-menu-name">{{item1.text}}</view>
				</view>
			</view>

		</uni-group>
		<uni-group title="推荐厂家">
			<uni-card v-for="i in 3" :title="'厂家'+i">
				<video style="width: 100%;" src="/static/mydata/peach.mp4" controls="" poster="../../static/makeChina/file_20220502cs15.jpg"></video>
				<view style="padding-top: 20rpx;">厂家介绍：中国航天科技集团有限公司是中国航天科技工业的主导力量，主要从事运载火箭、各类卫星、载人飞船、货运飞船、深空探测器、空间站等宇航产品和战略</view>
			</uni-card>
		</uni-group>
		<uni-group title="产品与解决方案">
			<uni-card @click="dianji" v-for="i in 5" :title="'智慧边海防整体解决方案'+i" thumbnail="../../static/makeChina/file_20220502cs15.jpg">
				<view style="padding-top: 20rpx;">方案介绍：智慧边海防整体解决方案则利用物联网</view>
			</uni-card>
		</uni-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				lun: [{
						image: '../../static/makeChina/file_20220502cs09.jpg',
						link: ''
					},
					{
						image: '../../static/makeChina/file_20220502cs15.jpg',
						link: ''
					},
					{
						image: '../../static/makeChina/file_20220502cs44.jpg',
						link: ''
					},
				],
				liat: [{
						image: '../../static/huangbao/icons/Come%20to%20the%20door.png',
						text: '厂商列表',
						link: 'makeC/chanlist'
					},
					{
						image: '../../static/huangbao/icons/Company%20recycling-ate.png',
						text: '产品列表',
						link: 'makeC/chanlisttt'
					},
					{
						image: '../../static/huangbao/icons/Recycling%20classification.png',
						text: '展会活动',
						link: 'makeC/zhannhuliat'
					},
					{
						image: '../../static/huangbao/icons/Recycling%20machine.png',
						text: '厂商招聘',
						link: 'makeC/chanjiruzhu'
					},
					{
						image: '../../static/huangbao/icons/Recycling%20machine.png',
						text: '厂商入驻',
						link: 'makeC/chanjia'
					},

				],

			}
		},
		methods: {
			dianji(){
				uni.navigateTo({
					url:'makeC/chanp'
				})
			},
			tozhiyuN(url) {
				uni.navigateTo({
					url: url
				})
			},
		}
	}
</script>

<style>
	.item-container {
		display: flex;
		flex-wrap: wrap;
	}

	.thumb-box {
		width: 20%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin-top: 20rpx;
	}

	.item-menu-image {
		width: 80rpx;
		height: 80rpx;
	}
</style>
